import request from '@/utils/request'

// 查询banner列表
export function listRing_banner(query) {
  return request({
    url: '/ring/ring_banner/list',
    method: 'get',
    params: query
  })
}

// 查询banner详细
export function getRing_banner(id) {
  return request({
    url: '/ring/ring_banner/' + id,
    method: 'get'
  })
}

// 新增banner
export function addRing_banner(data) {
  return request({
    url: '/ring/ring_banner',
    method: 'post',
    data: data
  })
}

// 修改banner
export function updateRing_banner(data) {
  return request({
    url: '/ring/ring_banner',
    method: 'put',
    data: data
  })
}

// 删除banner
export function delRing_banner(id) {
  return request({
    url: '/ring/ring_banner/' + id,
    method: 'delete'
  })
}
